package day2.Exer;

import java.util.Scanner;

public class Exer2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入文件名");
        String fileName=in.next();
        if(fileName.endsWith(".zip")||fileName.endsWith(".rar")){
            System.out.println("作业命名合适");
        }else{
            System.out.println("作业命名不合适");
        }
    }
}
